//
//  UIView+CornerRdius.h
//  apple
//
//  Created by he on 16/3/29.
//
//

#import <UIKit/UIKit.h>

@interface UIView (CornerRdius)

@property (nonatomic) IBInspectable CGFloat cornerRadius;

/** 头像圆角 */
@property (nonatomic) IBInspectable BOOL avatarCorner;

/** 边框 */
@property (nonatomic) IBInspectable CGFloat borderWidth;
@property (nonatomic, strong) IBInspectable UIColor *borderColor;

/** 1px线 */
@property (nonatomic, getter=isLineView) IBInspectable BOOL lineView;

/** 1px边框 */
@property (nonatomic, getter=isLineBorder) IBInspectable BOOL lineBorder;

/*
 部分圆角
 */
- (void)setPartCornerWithRectCorner:(UIRectCorner)corner
                       cornerRadius:(CGFloat)cornerRadiuc;

/*
 设置阴影
 */
- (void)setShadowOffset:(CGSize)shadowOffset
          shadowOpacity:(CGFloat)shadowOpacity
           shadowRadius:(CGFloat)shadowRadius
            shadowColor:(UIColor *)shadowColor;

/*
 圆角边框
 */
- (void)setRadius:(CGFloat)cornerRadius
      borderColor:(UIColor *)borderColor
      borderWidth:(CGFloat)borderWidth;

/**
渐变色
 */
- (void)setGradientLayerWithLocations:(NSArray *)locations
                               colors:(NSArray *)colors
                           startPoint:(CGPoint)startPoint
                             endPoint:(CGPoint)endPoint;

@end
